// SupportHangerChoosedSet.h: interface for the SupportHangerChoosedSet class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SUPPORTHANGERCHOOSEDSET_H__CDF7364A_74EC_4803_B557_46A0829A8BCA__INCLUDED_)
#define AFX_SUPPORTHANGERCHOOSEDSET_H__CDF7364A_74EC_4803_B557_46A0829A8BCA__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "Map.h"
class DllExport SupportHangerChoosedSet  
{
public:
	SupportHangerChoosedSet();
	virtual ~SupportHangerChoosedSet();

public:
	void Add(const CString& strSHID){
		ASSERT(!strSHID.IsEmpty());
		CString Key(strSHID);
		INT nData=0;
		if(m_theIndex.Lookup(Key, nData))
			return;
		m_theChoosed.Add(strSHID);
		m_theIndex.SetAt(Key, nData);
	}

	const CStringArray& GetChoosedSet() const {
		return m_theChoosed;
	}

private:
	CStringArray m_theChoosed;
	CMap<CString, CString, INT, INT> m_theIndex;
};

#endif // !defined(AFX_SUPPORTHANGERCHOOSEDSET_H__CDF7364A_74EC_4803_B557_46A0829A8BCA__INCLUDED_)
